﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Sisocana.Core.Models.DonacionEconomicaModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Financial donations
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

 <%=Html.ImagePopUpInit()%>     
 <p >
    <%: Html.ActionLink("See chart", "getChart", new { id = ViewData["idSitio"], tipo = 1, titulo = "Financial donations", ext = ".png" }, new { rel = "facebox" })%>    
</p>


<%= Html.Telerik().Grid(Model)
        .Name("Grid")            
        .Columns(columns =>
        {
            columns.Bound(o => o.NameOng).Width(100).Title("ONG Name");
            columns.Bound(o => o.monto).Width(200).Title("Amount");                   
            columns.Bound(o => o.fecha.Date).Format("{0:MM/dd/yyyy}").Width(120).Title("Date");
        })
        .DataBinding(dataBinding => 
        {
            dataBinding.Server().Select("RepDonacionEconomica", "Reportes", new
            {
                ajax =
                ViewData["ajax"] });
            dataBinding.Ajax().Select("_RepDonacionEconomica",
                "Reportes").Enabled((bool)ViewData["ajax"]);
        })
        .Scrollable(scrolling => scrolling.Enabled((bool)ViewData["scrolling"]))
        .Sortable(sorting => sorting.Enabled((bool)ViewData["sorting"]))
        .Pageable(paging => paging.Enabled((bool)ViewData["paging"]))
        .Filterable(filtering => filtering.Enabled((bool)ViewData["filtering"]))
        .Groupable(grouping => grouping.Enabled((bool)ViewData["grouping"]))
        .Footer((bool)ViewData["showFooter"])
%>


<div>
    <br />
    <br />
    <%: Html.ActionLink("Back to List", "Index", new { id = ViewData["idSitio"] })%>
   
</div>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>

